package com.ap.core.exception;


import com.ap.core.business.info.ValidationInfo;

import java.util.List;

/**
 * Exception class to indicate an business rule failures exception during message processing
 */
public class BusinessFailureException extends Exception {

    /**
	 * 
	 */
	private static final long serialVersionUID = 132432432435345L;
	private List<ValidationInfo> errorCodesInfo;

    public BusinessFailureException(String message, List<ValidationInfo> errorCodesInfo) {
        super(message);
        this.errorCodesInfo=errorCodesInfo;
    }

    public BusinessFailureException(String message) {
        super(message);
    }

    public List<ValidationInfo> getErrorCodesInfo() {
        return errorCodesInfo;
    }
}
